package com.bzxgc.sgwer.common.page;

public class SublistStudentServiceImpl implements StudentService {

    private StudentDao studentDao;

    public SublistStudentServiceImpl() {
        // 创建service实现类时，初始化dao对象
        this.studentDao = new SublistStudentDaoImpl();
    }

    @Override
    public Pager<Student> findStrudent(Student student, int pageNum, int pageSize) {
        Pager<Student> result = studentDao.findStrudent(student, pageNum, pageSize);
        return result;
    }

    public StudentDao getStudentDao() {
        return studentDao;
    }

    public void setStudentDao(StudentDao studentDao) {
        this.studentDao = studentDao;
    }
}
